/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewProjectPage2Panel.java
 *
 * Created on Mar 16, 2011, 8:09:10 PM
 */

package GUIforms;

/**
 *
 * @author danielsl
 */
public class Page2Panel extends javax.swing.JPanel {

    /** Creates new form NewProjectPage2Panel */
    public Page2Panel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        sessionsTabbedPane = new javax.swing.JTabbedPane();
        sessionPanelForTab = new javax.swing.JPanel();
        sessionNameLabel = new javax.swing.JLabel();
        sessionNameTextField = new javax.swing.JTextField();
        sessionDateTextField = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        sessionTimeLabel = new javax.swing.JLabel();
        sessionTimeTextField = new javax.swing.JTextField();
        sessionPlaceLabel = new javax.swing.JLabel();
        sessionPlaceDropDown = new javax.swing.JComboBox();
        sessionUsersLabel = new javax.swing.JLabel();
        facilitatorLabel = new javax.swing.JLabel();
        facilitatorDropDown = new javax.swing.JComboBox();
        secretaryLabel = new javax.swing.JLabel();
        secretaryDropDown = new javax.swing.JComboBox();
        expertsLabel = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        availableUsersList = new javax.swing.JList();
        addAllUsersButton = new javax.swing.JButton();
        addUserButton = new javax.swing.JButton();
        removeUserButton = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        addedUsersList = new javax.swing.JList();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel2 = new javax.swing.JLabel();
        emptySessionPanel1 = new javax.swing.JPanel();
        emptySessionPanel2 = new javax.swing.JPanel();
        emptySessionPanel3 = new javax.swing.JPanel();
        projectInfoButton = new javax.swing.JButton();
        createProjectButton = new javax.swing.JButton();

        sessionNameLabel.setText("Navn:");

        jLabel1.setText("Tidspunkt:");

        sessionTimeLabel.setText("Klokkeslett:");

        sessionPlaceLabel.setText("Plass:");

        sessionPlaceDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "---------", "Høgskolen i Sør-Trøndelag" }));

        sessionUsersLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        sessionUsersLabel.setText("Deltakere:");

        facilitatorLabel.setText("Fasilitator:");

        facilitatorDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "------------" }));

        secretaryLabel.setText("Sekretær:");

        secretaryDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "------------" }));

        expertsLabel.setText("Eksperter:");

        availableUsersList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane1.setViewportView(availableUsersList);

        addAllUsersButton.setText("Legg til alle");

        addUserButton.setText("Legg til");

        removeUserButton.setText("Fjern");

        addedUsersList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane2.setViewportView(addedUsersList);

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);

        jLabel2.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        jLabel2.setText("Informasjon:");

        org.jdesktop.layout.GroupLayout sessionPanelForTabLayout = new org.jdesktop.layout.GroupLayout(sessionPanelForTab);
        sessionPanelForTab.setLayout(sessionPanelForTabLayout);
        sessionPanelForTabLayout.setHorizontalGroup(
            sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(sessionPanelForTabLayout.createSequentialGroup()
                .addContainerGap()
                .add(sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel2)
                    .add(sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionNameTextField)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionNameLabel)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel1)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionDateTextField)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionTimeLabel)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionTimeTextField)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionPlaceLabel)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionPlaceDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 145, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .add(18, 18, 18)
                .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(18, 18, 18)
                .add(sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(facilitatorLabel)
                    .add(secretaryLabel))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(secretaryDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(facilitatorDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(149, 149, 149))
            .add(sessionPanelForTabLayout.createSequentialGroup()
                .add(213, 213, 213)
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 90, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)
                    .add(removeUserButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                    .add(addAllUsersButton)
                    .add(addUserButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 94, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(52, Short.MAX_VALUE))
            .add(sessionPanelForTabLayout.createSequentialGroup()
                .add(213, 213, 213)
                .add(expertsLabel)
                .add(310, 310, 310))
            .add(sessionPanelForTabLayout.createSequentialGroup()
                .add(213, 213, 213)
                .add(sessionUsersLabel)
                .add(305, 305, 305))
        );
        sessionPanelForTabLayout.setVerticalGroup(
            sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, sessionPanelForTabLayout.createSequentialGroup()
                .addContainerGap()
                .add(sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, sessionPanelForTabLayout.createSequentialGroup()
                        .add(jLabel2)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionNameLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionNameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(5, 5, 5)
                        .add(jLabel1)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionDateTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionTimeLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionTimeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionPlaceLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionPlaceDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(org.jdesktop.layout.GroupLayout.LEADING, sessionPanelForTabLayout.createSequentialGroup()
                        .add(sessionUsersLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(facilitatorDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(facilitatorLabel))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(secretaryLabel)
                            .add(secretaryDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(expertsLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionPanelForTabLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(sessionPanelForTabLayout.createSequentialGroup()
                                .add(33, 33, 33)
                                .add(addUserButton)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(removeUserButton)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .add(addAllUsersButton))
                            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE))
                .addContainerGap())
        );

        sessionsTabbedPane.addTab("Sesjon 1", sessionPanelForTab);

        org.jdesktop.layout.GroupLayout emptySessionPanel1Layout = new org.jdesktop.layout.GroupLayout(emptySessionPanel1);
        emptySessionPanel1.setLayout(emptySessionPanel1Layout);
        emptySessionPanel1Layout.setHorizontalGroup(
            emptySessionPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 586, Short.MAX_VALUE)
        );
        emptySessionPanel1Layout.setVerticalGroup(
            emptySessionPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 339, Short.MAX_VALUE)
        );

        sessionsTabbedPane.addTab("Sesjon 2", emptySessionPanel1);

        org.jdesktop.layout.GroupLayout emptySessionPanel2Layout = new org.jdesktop.layout.GroupLayout(emptySessionPanel2);
        emptySessionPanel2.setLayout(emptySessionPanel2Layout);
        emptySessionPanel2Layout.setHorizontalGroup(
            emptySessionPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 586, Short.MAX_VALUE)
        );
        emptySessionPanel2Layout.setVerticalGroup(
            emptySessionPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 339, Short.MAX_VALUE)
        );

        sessionsTabbedPane.addTab("Sesjon 3", emptySessionPanel2);

        org.jdesktop.layout.GroupLayout emptySessionPanel3Layout = new org.jdesktop.layout.GroupLayout(emptySessionPanel3);
        emptySessionPanel3.setLayout(emptySessionPanel3Layout);
        emptySessionPanel3Layout.setHorizontalGroup(
            emptySessionPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 586, Short.MAX_VALUE)
        );
        emptySessionPanel3Layout.setVerticalGroup(
            emptySessionPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 339, Short.MAX_VALUE)
        );

        sessionsTabbedPane.addTab("Sesjon 4", emptySessionPanel3);

        projectInfoButton.setText("Prosjektinformasjon");

        createProjectButton.setText("Opprett");

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .addContainerGap()
                        .add(sessionsTabbedPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(layout.createSequentialGroup()
                        .add(214, 214, 214)
                        .add(projectInfoButton)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(createProjectButton)))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(29, 29, 29)
                .add(sessionsTabbedPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(projectInfoButton)
                    .add(createProjectButton))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton addAllUsersButton;
    private javax.swing.JButton addUserButton;
    private javax.swing.JList addedUsersList;
    private javax.swing.JList availableUsersList;
    private javax.swing.JButton createProjectButton;
    private javax.swing.JPanel emptySessionPanel1;
    private javax.swing.JPanel emptySessionPanel2;
    private javax.swing.JPanel emptySessionPanel3;
    private javax.swing.JLabel expertsLabel;
    private javax.swing.JComboBox facilitatorDropDown;
    private javax.swing.JLabel facilitatorLabel;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JButton projectInfoButton;
    private javax.swing.JButton removeUserButton;
    private javax.swing.JComboBox secretaryDropDown;
    private javax.swing.JLabel secretaryLabel;
    private javax.swing.JTextField sessionDateTextField;
    private javax.swing.JLabel sessionNameLabel;
    private javax.swing.JTextField sessionNameTextField;
    private javax.swing.JPanel sessionPanelForTab;
    private javax.swing.JComboBox sessionPlaceDropDown;
    private javax.swing.JLabel sessionPlaceLabel;
    private javax.swing.JLabel sessionTimeLabel;
    private javax.swing.JTextField sessionTimeTextField;
    private javax.swing.JLabel sessionUsersLabel;
    private javax.swing.JTabbedPane sessionsTabbedPane;
    // End of variables declaration//GEN-END:variables

}
